//
//  MedSearch.h
//  Pocket Doctor alpha version
//
//  Created by Sherif Nosseir on 11-12-06.
//  Copyright (c) 2011 __MyCompanyName__. All rights reserved.
//

@class MainMenu;
@class DataGenerator;
#import <UIKit/UIKit.h>

@interface MedSearch : UIViewController {
    
    MainMenu *mm;
    DataGenerator *dg;
    
    UITableView *tableContent;
    UIWebView *webView;
    
    UIToolbar *navigationComplete;
    UIToolbar *navigationLoading;
    UIButton *lastPageLoading;
    UIBarButtonItem *nextPageLoading;
    UIBarButtonItem *stopLoading;
    UINavigationBar *googlepedia;
    UINavigationBar *webBar;
    UIBarButtonItem *backToGooglepedia;
    UIBarButtonItem *backMainMenu;
    UIButton *lastPage;
    UIBarButtonItem *nextPage;
    UIActivityIndicatorView *activityIndicator;
    
    NSArray *content;
    NSArray *indices;
}

@property (retain, nonatomic) MainMenu *mm;
@property (retain, nonatomic) DataGenerator *dg;

@property (retain, nonatomic) IBOutlet UITableView *tableContent;
@property (retain, nonatomic) IBOutlet UIWebView *webView;

@property (retain, nonatomic) IBOutlet UIToolbar *navigationComplete;
@property (retain, nonatomic) IBOutlet UIToolbar *navigationLoading;
@property (retain, nonatomic) IBOutlet UIButton *lastPageLoading;
@property (retain, nonatomic) IBOutlet UIBarButtonItem *nextPageLoading;
@property (retain, nonatomic) IBOutlet UIBarButtonItem *stopLoading;
@property (retain, nonatomic) IBOutlet UIBarButtonItem *backToGooglepedia;
@property (retain, nonatomic) IBOutlet UINavigationBar *googlepedia;
@property (retain, nonatomic) IBOutlet UINavigationBar *webBar;
@property (retain, nonatomic) IBOutlet UIBarButtonItem *backMainMenu;
@property (retain, nonatomic) IBOutlet UIButton *lastPage;
@property (retain, nonatomic) IBOutlet UIBarButtonItem *nextPage;
@property (retain, nonatomic) IBOutlet UIActivityIndicatorView *activityIndicator;

@property (retain, nonatomic) NSArray *content;
@property (retain, nonatomic) NSArray *indices;


- (IBAction)BackToMainMenu:(id)sender;
- (IBAction)BackToGooglepedia:(id)sender;
@end
